import { createRouter, createWebHashHistory } from 'vue-router'

import UserAddView from '../views/UserAddView.vue'
import UserShowView from '../views/UserShowView.vue'

const routes = [
  {
    path: '/add',
    name: 'UserAdd',
    component: UserAddView
  },
  {
    path: '/show',
    name: 'UserShow',
    component: UserShowView
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
